<?php

class Contacto extends DataMapper {
  
  public $model      = "contacto";
  public $table      = "contactos";
  public $has_one    = array('usuario'); 
  public $has_many   = array();

  public $validation = array(
    'nombre' => array(
      'label' => 'Nombre',
      'rules' => array('trim')      
    ),
    'telefono' => array(
      'label' => 'Teléfono',
      'rules' => array('trim')
    ),
    'email' => array(
      'label' => 'E-Mail',
      'rules' => array('trim')
    )
  );

  public function __construct($id = NULL) {
    parent::__construct($id);
  }

}